<?php

$startdate=strtotime("2016-03-03");
$enddate=time();
echo time();
echo "<br>";
echo date("Y-m-d H:i:s",1457107200 );
$days=round(($enddate-$startdate)/3600/24) ;
echo "<br>";
echo $days; //days为得到的天数;
exit;
ini_set('default_socket_timeout', -1);
$redis = new Redis();

$redis->connect('127.0.0.1',6379);

//$redis->auth('123456');

$redis->select(1);

$ret = $redis->set('www.osyunwei.com', 'osyunwei');

var_dump($ret);

$allKeys = $redis->keys('*');

print_r($allKeys);

?>